package day0302;

import java.util.AbstractList;
import java.util.Arrays;
import java.util.List;

public class ArraysDemo {
    public static void main(String[] args) {
        //数组转为集合
        String[] arr ={"one","two","three","four"};
        List<String> list = Arrays.asList(arr);
        System.out.println(list);

       //集合转为数组
        String[] arr1 =list.toArray(new String[list.size()]);
       System.out.println(Arrays.toString(arr1));
       // System.out.println(arr1);




    }
}
